#ifndef AXP15_REGU_H_
#define AXP15_REGU_H_

#include <linux/regulator/driver.h>
#include <linux/regulator/machine.h>

enum {
	AXP15_ID_LDO0,
	AXP15_ID_LDO1,
	AXP15_ID_LDO2,
	AXP15_ID_LDO3,
	AXP15_ID_LDO4,
	AXP15_ID_LDO5,
	AXP15_ID_LDOIO0 = AXP_LDOIO_ID_START,
	AXP15_ID_DCDC1  = AXP_DCDC_ID_START,
	AXP15_ID_DCDC2,
	AXP15_ID_DCDC3,
	AXP15_ID_DCDC4,
	AXP15_REG_MAX,
};

/* AXP15 Regulator Registers */
#define AXP15_LDO0         AXP15_LDO0OUT_VOL
#define AXP15_RTC          AXP15_STATUS
#define AXP15_ALDO1        AXP15_LDO34OUT_VOL
#define AXP15_ALDO2        AXP15_LDO34OUT_VOL
#define AXP15_DLDO1        AXP15_LDO5OUT_VOL
#define AXP15_DLDO2        AXP15_LDO6OUT_VOL
#define AXP15_LDOIO0       AXP15_GPIO0_VOL

#define AXP15_DCDC1        AXP15_DC1OUT_VOL
#define AXP15_DCDC2        AXP15_DC2OUT_VOL
#define AXP15_DCDC3        AXP15_DC3OUT_VOL
#define AXP15_DCDC4        AXP15_DC4OUT_VOL

#define AXP15_LDO0EN       AXP15_LDO0_CTL
#define AXP15_RTCLDOEN     AXP15_STATUS
#define AXP15_ALDO1EN      AXP15_LDO3456_DC1234_CTL
#define AXP15_ALDO2EN      AXP15_LDO3456_DC1234_CTL
#define AXP15_DLDO1EN      AXP15_LDO3456_DC1234_CTL
#define AXP15_DLDO2EN      AXP15_LDO3456_DC1234_CTL
#define AXP15_LDOI0EN      AXP15_GPIO2_CTL

#define AXP15_DCDC1EN      AXP15_LDO3456_DC1234_CTL
#define AXP15_DCDC2EN      AXP15_LDO3456_DC1234_CTL
#define AXP15_DCDC3EN      AXP15_LDO3456_DC1234_CTL
#define AXP15_DCDC4EN      AXP15_LDO3456_DC1234_CTL

#define AXP15_BUCKMODE     AXP15_DCDC_MODESET
#define AXP15_BUCKFREQ     AXP15_DCDC_FREQSET

#endif /* AXP15_REGU_H_ */
